<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>vue搜索效果</title>
		<meta name="format-detection" content="telephone=no"/>
        <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no" />
        <meta name="apple-touch-fullscreen" content="yes" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
		<link rel="stylesheet" href="css/reset.css" />
		<!--<link rel="stylesheet" href="js/lib/bootstrap/css/bootstrap.css" />-->
		<script src="js/base.js"></script>
		<style>
			.container{padding-top: .2rem;}
		</style>
	</head>
	<body>
		<div class="container" id="box">
			<input type="text" v-model="sResult" @keyup="get()" />
		</div>
		
		<script src="js/jquery-2.2.0.min.js"></script>
		<!--<script src="js/lib/bootstrap/js/bootstrap.js"></script>-->
		<script src="js/lib/vue.js"></script>
		<script>
			$(function(){
				var vtable = new Vue({
                el:'#box',
                data:{
                    myData:[],
                    sResult:''
                },
                methods:{
                    get:function(){
                    	this.$http.jsonp('https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su',{
                    		wd: this.sResult
                    	})
                    }
                }
            });
			});
		</script>
	</body>
</html>
